home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / IRC next >
Unknown  |  2000-04-12  |  7.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% TrID PGN (Portable Gaming Notation) Compressed format default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 05 43 6c 61 73 73 03 49 | 52 43 ad 01 94 01 8c 10 |.Class.I|RC......|
|00000010| b0 0c 07 00 03 49 52 43 | b4 01 06 53 6f 63 6b 65 |.....IRC|...Socke|
|00000020| 74 00 05 13 69 72 63 53 | 65 72 76 65 72 20 61 73 |t...ircS|erver as|
|00000030| 20 73 74 72 69 6e 67 00 | 11 69 72 63 4e 69 63 6b | string.|.ircNick|
|00000040| 20 61 73 20 73 74 72 69 | 6e 67 00 11 69 72 63 55 | as stri|ng..ircU|
|00000050| 73 65 72 20 61 73 20 73 | 74 72 69 6e 67 00 11 69 |ser as s|tring..i|
|00000060| 72 63 4e 61 6d 65 20 61 | 73 20 73 74 72 69 6e 67 |rcName a|s string|
|00000070| 00 14 69 72 63 43 68 61 | 6e 6e 65 6c 20 61 73 20 |..ircCha|nnel as |
|00000080| 73 74 72 69 6e 67 00 09 | 07 72 63 76 44 61 74 61 |string..|.rcvData|
|00000090| 0e 64 61 74 61 20 61 73 | 20 73 74 72 69 6e 67 00 |.data as| string.|
|000000a0| 00 ab 01 08 ab 01 08 8d | 03 1b 53 75 62 20 72 63 |........|..Sub rc|
|000000b0| 76 44 61 74 61 28 64 61 | 74 61 20 61 73 20 73 74 |vData(da|ta as st|
|000000c0| 72 69 6e 67 29 1d 27 57 | 65 20 68 61 76 65 20 6e |ring).'W|e have n|
|000000d0| 6f 77 20 74 6f 20 73 6f | 72 74 20 74 68 65 20 64 |ow to so|rt the d|
|000000e0| 61 74 61 10 64 69 6d 20 | 69 20 61 73 20 69 6e 74 |ata.dim |i as int|
|000000f0| 65 67 65 72 13 64 69 6d | 20 6b 69 6e 64 20 61 73 |eger.dim| kind as|
|00000100| 20 69 6e 74 65 67 65 72 | 24 64 69 6d 20 61 6c 6c | integer|$dim all|
|00000110| 44 61 74 61 2c 64 61 74 | 61 53 74 72 69 6e 67 2c |Data,dat|aString,|
|00000120| 6d 73 67 20 61 73 20 73 | 74 72 69 6e 67 1e 64 69 |msg as s|tring.di|
|00000130| 6d 20 6e 69 63 6b 2c 75 | 73 65 72 2c 64 6f 6d 61 |m nick,u|ser,doma|
|00000140| 69 6e 20 61 73 20 73 74 | 72 69 6e 67 00 28 6d 61 |in as st|ring.(ma|
|00000150| 69 6e 2e 64 65 62 75 67 | 2e 74 65 78 74 20 3d 20 |in.debug|.text = |
|00000160| 6d 61 69 6e 2e 64 65 62 | 75 67 2e 74 65 78 74 20 |main.deb|ug.text |
|00000170| 2b 20 64 61 74 61 05 69 | 20 3d 20 31 25 61 6c 6c |+ data.i| = 1%all|
|00000180| 44 61 74 61 20 3d 20 64 | 61 74 61 20 2b 20 63 68 |Data = d|ata + ch|
|00000190| 72 28 31 30 29 20 2b 20 | 22 54 41 42 41 52 4e 41 |r(10) + |"TABARNA|
|000001a0| 4b 22 00 31 64 6f 20 75 | 6e 74 69 6c 20 6e 74 68 |K".1do u|ntil nth|
|000001b0| 46 69 65 6c 64 28 61 6c | 6c 44 61 74 61 2c 63 68 |Field(al|lData,ch|
|000001c0| 72 28 31 30 29 2c 69 29 | 20 3d 20 22 54 41 42 41 |r(10),i)| = "TABA|
|000001d0| 52 4e 41 4b 22 28 64 61 | 74 61 53 74 72 69 6e 67 |RNAK"(da|taString|
|000001e0| 20 3d 20 6e 74 68 46 69 | 65 6c 64 28 61 6c 6c 44 | = nthFi|eld(allD|
|000001f0| 61 74 61 2c 63 68 72 28 | 31 30 29 2c 69 29 33 6d |ata,chr(|10),i)3m|
|00000200| 73 67 20 3d 20 6d 69 64 | 28 64 61 74 61 53 74 72 |sg = mid|(dataStr|
|00000210| 69 6e 67 2c 69 6e 53 74 | 72 28 35 2c 64 61 74 61 |ing,inSt|r(5,data|
|00000220| 53 74 72 69 6e 67 2c 63 | 68 72 28 35 38 29 29 2b |String,c|hr(58))+|
|00000230| 31 29 20 6d 73 67 20 3d | 20 72 65 70 6c 61 63 65 |1) msg =| replace|
|00000240| 41 6c 6c 28 6d 73 67 2c | 63 68 72 28 31 33 29 2c |All(msg,|chr(13),|
|00000250| 22 22 29 00 2a 73 65 6c | 65 63 74 20 63 61 73 65 |"").*sel|ect case|
|00000260| 20 6e 74 68 46 69 65 6c | 64 28 64 61 74 61 53 74 | nthFiel|d(dataSt|
|00000270| 72 69 6e 67 2c 63 68 72 | 28 33 32 29 2c 31 29 00 |ring,chr|(32),1).|
|00000280| 88 01 63 61 73 65 20 22 | 4e 4f 54 49 43 45 22 20 |..case "|NOTICE" |
|00000290| 27 74 68 65 20 66 6f 72 | 6d 20 6f 66 20 74 68 65 |'the for|m of the|
|000002a0| 20 69 6e 63 6f 6d 69 6e | 67 20 64 61 74 61 20 69 | incomin|g data i|
|000002b0| 73 20 2d 2d 3e 20 3a 4e | 4f 54 49 43 45 20 5b 74 |s --> :N|OTICE [t|
|000002c0| 79 70 65 5d 20 3a 6d 73 | 67 20 24 69 66 20 69 6e |ype] :ms|g $if in|
|000002d0| 53 74 72 28 64 61 74 61 | 53 74 72 69 6e 67 2c 22 |Str(data|String,"|
|000002e0| 41 55 54 48 22 29 20 3e | 20 30 20 74 68 65 6e 14 |AUTH") >| 0 then.|
|000002f0| 61 75 74 68 49 6e 66 6f | 52 65 63 65 69 76 65 64 |authInfo|Received|
|00000300| 20 6d 73 67 04 65 6c 73 | 65 12 6e 6f 74 69 63 65 | msg.els|e.notice|
|00000310| 52 65 63 65 69 76 65 64 | 20 6d 73 67 06 65 6e 64 |Received| msg.end|
|00000320| 20 69 66 00 86 01 63 61 | 73 65 20 22 50 49 4e 47 | if...ca|se "PING|
|00000330| 22 20 27 74 68 65 20 66 | 6f 72 6d 20 6f 66 20 74 |" 'the f|orm of t|
|00000340| 68 65 20 69 6e 63 6f 6d | 69 6e 67 20 64 61 74 61 |he incom|ing data|
|00000350| 20 69 73 20 2d 2d 3e 20 | 3a 50 49 4e 47 20 69 72 | is --> |:PING ir|
|00000360| 63 2e 73 65 72 76 65 72 | 2e 63 6f 6d 82 01 27 55 |c.server|.com..'U|
|00000370| 73 65 64 20 74 6f 20 6d | 61 69 6e 74 61 69 6e 20 |sed to m|aintain |
|00000380| 63 6f 6e 6e 65 63 74 69 | 6f 6e 2c 20 69 66 20 6e |connecti|on, if n|
|00000390| 6f 74 20 64 6f 2c 20 74 | 68 65 20 73 65 72 76 65 |ot do, t|he serve|
|000003a0| 72 20 64 69 73 63 6f 6e | 6e 65 63 74 20 75 73 20 |r discon|nect us |
|000003b0| 2d 77 72 69 74 65 20 22 | 50 4f 4e 47 20 22 20 2b |-write "|PONG " +|
|000003c0| 20 69 72 63 53 65 72 76 | 65 72 20 2b 20 63 68 72 | ircServ|er + chr|
|000003d0| 28 31 33 29 20 2b 20 63 | 68 72 28 31 30 29 00 9a |(13) + c|hr(10)..|
|000003e0| 01 63 61 73 65 20 22 3a | 22 20 2b 20 69 72 63 53 |.case ":|" + ircS|
|000003f0| 65 72 76 65 72 20 27 74 | 68 65 20 66 6f 72 6d 20 |erver 't|he form |
|00000400| 6f 66 20 74 68 65 20 69 | 6e 63 6f 6d 69 6e 67 20 |of the i|ncoming |
|00000410| 64 61 74 61 20 69 73 20 | 2d 2d 3e 20 3a 69 72 63 |data is |--> :irc|
|00000420| 2e 73 65 72 76 65 72 2e | 63 6f 6d 20 6b 69 6e 64 |.server.|com kind|
|00000430| 20 6e 69 63 6b 20 3a 6d | 73 67 20 24 27 43 68 65 | nick :m|sg $'Che|
|00000440| 63 6b 20 74 68 65 20 6b | 69 6e 64 20 6f 66 20 74 |ck the k|ind of t|
|00000450| 68 65 20 69 6e 63 6f 6d | 69 6e 67 20 64 61 74 61 |he incom|ing data|
|00000460| 2a 6b 69 6e 64 20 3d 20 | 76 61 6c 28 6e 74 68 46 |*kind = |val(nthF|
|00000470| 69 65 6c 64 28 64 61 74 | 61 53 74 72 69 6e 67 2c |ield(dat|aString,|
|00000480| 63 68 72 28 33 32 29 2c | 32 29 29 00 10 73 65 6c |chr(32),|2))..sel|
|00000490| 65 63 74 20 63 61 73 65 | 20 6b 69 6e 64 00 08 63 |ect case| kind..c|
|000004a0| 61 73 65 20 30 30 31 2f | 27 57 65 6c 63 6f 6d 65 |ase 001/|'Welcome|
|000004b0| 20 3a 20 74 68 61 74 27 | 73 20 72 65 61 6c 6c 79 | : that'|s really|
|000004c0| 20 6d 65 61 6e 20 79 6f | 75 20 61 72 65 20 63 6f | mean yo|u are co|
|000004d0| 6e 6e 65 63 74 65 64 16 | 77 65 6c 63 6f 6d 65 4d |nnected.|welcomeM|
|000004e0| 73 67 52 65 63 65 69 76 | 65 64 20 6d 73 67 00 08 |sgReceiv|ed msg..|
|000004f0| 63 61 73 65 20 30 30 32 | 36 27 56 65 72 73 69 6f |case 002|6'Versio|
|00000500| 6e 20 6f 66 20 74 68 65 | 20 69 72 63 20 73 65 72 |n of the| irc ser|
|00000510| 76 65 72 20 74 68 61 74 | 20 74 68 65 20 68 6f 73 |ver that| the hos|
|00000520| 74 20 75 73 65 64 20 3a | 20 54 59 50 45 20 31 18 |t used :| TYPE 1.|
|00000530| 73 65 72 76 65 72 49 6e | 66 6f 52 65 63 65 69 76 |serverIn|foReceiv|
|00000540| 65 64 20 31 2c 6d 73 67 | 08 63 61 73 65 20 30 30 |ed 1,msg|.case 00|
|00000550| 33 25 27 43 72 65 61 74 | 69 6f 6e 20 64 61 74 65 |3%'Creat|ion date|
|00000560| 20 6f 66 20 74 68 65 20 | 73 65 72 76 65 72 20 3a | of the |server :|
|00000570| 20 54 59 50 45 20 32 18 | 73 65 72 76 65 72 49 6e | TYPE 2.|serverIn|
|00000580| 66 6f 52 65 63 65 69 76 | 65 64 20 32 2c 6d 73 67 |foReceiv|ed 2,msg|
|00000590| 00 08 63 61 73 65 20 32 | 35 31 28 27 4e 75 6d 62 |..case 2|51('Numb|
|000005a0| 65 72 20 6f 66 20 75 73 | 65 72 73 20 6f 6e 20 74 |er of us|ers on t|
|000005b0| 68 65 20 6e 65 74 77 6f | 72 6b 20 3a 20 54 59 50 |he netwo|rk : TYP|
|000005c0| 45 20 31 1b 6e 65 74 77 | 6f 72 6b 49 6e 66 6f 52 |E 1.netw|orkInfoR|
|000005d0| 65 63 65 69 76 65 64 20 | 31 2c 30 2c 6d 73 67 08 |eceived |1,0,msg.|
|000005e0| 63 61 73 65 20 32 35 32 | 28 27 4e 75 6d 62 65 72 |case 252|('Number|
|000005f0| 20 6f 66 20 49 52 43 20 | 6f 70 65 72 61 74 6f 72 | of IRC |operator|
|00000600| 73 20 6f 6e 6c 69 6e 65 | 20 3a 20 54 59 50 45 20 |s online| : TYPE |
|00000610| 32 3d 6e 65 74 77 6f 72 | 6b 49 6e 66 6f 52 65 63 |2=networ|kInfoRec|
|00000620| 65 69 76 65 64 20 32 2c | 76 61 6c 28 6e 74 68 46 |eived 2,|val(nthF|
|00000630| 69 65 6c 64 28 64 61 74 | 61 53 74 72 69 6e 67 2c |ield(dat|aString,|
|00000640| 63 68 72 28 33 32 29 2c | 34 29 29 2c 6d 73 67 08 |chr(32),|4)),msg.|
|00000650| 63 61 73 65 20 32 35 34 | 23 27 4e 75 6d 62 65 72 |case 254|#'Number|
|00000660| 20 6f 66 20 63 68 61 6e | 6e 65 6c 73 20 66 6f 72 | of chan|nels for|
|00000670| 6d 65 64 20 3a 20 54 59 | 50 45 20 33 3d 6e 65 74 |med : TY|PE 3=net|
|00000680| 77 6f 72 6b 49 6e 66 6f | 52 65 63 65 69 76 65 64 |workInfo|Received|
|00000690| 20 33 2c 76 61 6c 28 6e | 74 68 46 69 65 6c 64 28 | 3,val(n|thField(|
|000006a0| 64 61 74 61 53 74 72 69 | 6e 67 2c 63 68 72 28 33 |dataStri|ng,chr(3|
|000006b0| 32 29 2c 34 29 29 2c 6d | 73 67 08 63 61 73 65 20 |2),4)),m|sg.case |
|000006c0| 32 35 35 28 27 4e 75 6d | 62 65 72 20 6f 66 20 63 |255('Num|ber of c|
|000006d0| 6c 69 65 6e 74 20 6f 6e | 20 74 68 65 20 73 65 72 |lient on| the ser|
|000006e0| 76 65 72 20 3a 20 54 59 | 50 45 20 34 1b 6e 65 74 |ver : TY|PE 4.net|
|000006f0| 77 6f 72 6b 49 6e 66 6f | 52 65 63 65 69 76 65 64 |workInfo|Received|
|00000700| 20 34 2c 30 2c 6d 73 67 | 00 08 63 61 73 65 20 33 | 4,0,msg|..case 3|
|00000710| 37 35 24 27 4d 65 73 73 | 61 67 65 20 6f 66 20 74 |75$'Mess|age of t|
|00000720| 68 65 20 64 61 79 20 77 | 69 6c 6c 20 62 65 20 72 |he day w|ill be r|
|00000730| 65 63 65 69 76 65 64 0c | 6d 6f 74 64 52 65 63 65 |eceived.|motdRece|
|00000740| 69 76 65 64 08 63 61 73 | 65 20 33 37 32 18 27 4d |ived.cas|e 372.'M|
|00000750| 65 73 73 61 67 65 20 6f | 66 20 74 68 65 20 64 61 |essage o|f the da|
|00000760| 79 20 64 61 74 61 14 6d | 6f 74 64 44 61 74 61 52 |y data.m|otdDataR|
|00000770| 65 63 65 69 76 65 64 20 | 6d 73 67 08 63 61 73 65 |eceived |msg.case|
|00000780| 20 33 37 37 18 27 4d 65 | 73 73 61 67 65 20 6f 66 | 377.'Me|ssage of|
|00000790| 20 74 68 65 20 64 61 79 | 20 64 61 74 61 14 6d 6f | the day| data.mo|
|000007a0| 74 64 44 61 74 61 52 65 | 63 65 69 76 65 64 20 6d |tdDataRe|ceived m|
|000007b0| 73 67 08 63 61 73 65 20 | 33 37 36 85 01 27 74 68 |sg.case |376..'th|
|000007c0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 6d 65 73 |e end of| the mes|
|000007d0| 73 61 67 65 20 6f 66 20 | 74 68 65 20 64 61 79 20 |sage of |the day |
|000007e0| 69 73 20 72 65 61 63 68 | 2e 20 57 65 20 63 61 6e |is reach|. We can|
|000007f0| 20 6e 6f 77 20 73 65 6e | 64 20 63 6f 6d 6d 61 6e | now sen|d comman|
|00000800| 64 73 0f 6d 6f 74 64 45 | 6e 64 52 65 63 65 69 76 |ds.motdE|ndReceiv|
|00000810| 65 64 00 08 63 61 73 65 | 20 33 31 31 2d 27 57 68 |ed..case| 311-'Wh|
|00000820| 6f 69 73 20 69 6e 66 6f | 20 3a 20 75 73 65 72 20 |ois info| : user |
|00000830| 6e 61 6d 65 2c 20 64 6f | 6d 61 69 6e 20 61 6e 64 |name, do|main and|
|00000840| 20 72 65 61 6c 20 6e 61 | 6d 65 93 01 77 68 6f 69 | real na|me..whoi|
|00000850| 73 55 73 65 72 52 65 63 | 65 69 76 65 64 20 6e 74 |sUserRec|eived nt|
|00000860| 68 46 69 65 6c 64 28 64 | 61 74 61 53 74 72 69 6e |hField(d|ataStrin|
|00000870| 67 2c 63 68 72 28 33 32 | 29 2c 35 29 2c 6e 74 68 |g,chr(32|),5),nth|
|00000880| 46 69 65 6c 64 28 64 61 | 74 61 53 74 72 69 6e 67 |Field(da|taString|
|00000890| 2c 63 68 72 28 33 32 29 | 2c 36 29 2c 6d 73 67 08 |,chr(32)|,6),msg.|
|000008a0| 63 61 73 65 20 33 31 32 | 2b 27 57 68 6f 69 73 20 |case 312|+'Whois |
|000008b0| 69 6e 66 6f 20 3a 20 73 | 65 72 76 65 72 20 64 6f |info : s|erver do|
|000008c0| 6d 61 69 6e 20 61 6e 64 | 20 73 65 72 76 65 72 20 |main and| server |
|000008d0| 6e 61 6d 65 36 77 68 6f | 69 73 53 65 72 76 65 72 |name6who|isServer|
|000008e0| 52 65 63 65 69 76 65 64 | 20 6e 74 68 46 69 65 6c |Received| nthFiel|
|000008f0| 64 28 64 61 74 61 53 74 | 72 69 6e 67 2c 63 68 72 |d(dataSt|ring,chr|
|00000900| 28 33 32 29 2c 35 29 2c | 6d 73 67 08 63 61 73 65 |(32),5),|msg.case|
|00000910| 20 33 31 39 30 27 57 68 | 6f 69 73 20 69 6e 66 6f | 3190'Wh|ois info|
|00000920| 20 3a 20 4f 6e 20 77 68 | 61 74 20 63 68 61 6e 6e | : On wh|at chann|
|00000930| 65 6c 20 69 73 20 74 68 | 65 20 77 68 6f 69 73 20 |el is th|e whois |
|00000940| 75 73 65 72 20 18 77 68 | 6f 69 73 43 68 61 6e 6e |user .wh|oisChann|
|00000950| 65 6c 52 65 63 65 69 76 | 65 64 20 6d 73 67 00 08 |elReceiv|ed msg..|
|00000960| 63 61 73 65 20 33 33 32 | 06 27 54 6f 70 69 63 11 |case 332|.'Topic.|
|00000970| 74 6f 70 69 63 52 65 63 | 65 69 76 65 64 20 6d 73 |topicRec|eived ms|
|00000980| 67 2b 69 72 63 43 68 61 | 6e 6e 65 6c 20 3d 20 6e |g+ircCha|nnel = n|
|00000990| 74 68 46 69 65 6c 64 28 | 64 61 74 61 53 74 72 69 |thField(|dataStri|
|000009a0| 6e 67 2c 63 68 72 28 33 | 32 29 2c 34 29 08 63 61 |ng,chr(3|2),4).ca|
|000009b0| 73 65 20 33 35 33 2e 27 | 55 73 65 72 73 20 6c 69 |se 353.'|Users li|
|000009c0| 73 74 2c 20 65 61 63 68 | 20 75 73 65 72 20 61 72 |st, each| user ar|
|000009d0| 65 20 73 65 70 61 72 61 | 74 65 20 62 79 20 61 20 |e separa|te by a |
|000009e0| 73 70 61 63 65 15 75 73 | 65 72 73 4c 69 73 74 52 |space.us|ersListR|
|000009f0| 65 63 65 69 76 65 64 20 | 6d 73 67 00 08 63 61 73 |eceived |msg..cas|
|00000a00| 65 20 34 30 31 24 65 72 | 72 6f 72 52 65 63 65 69 |e 401$er|rorRecei|
|00000a10| 76 65 64 20 22 4e 6f 20 | 73 75 63 68 20 6e 69 63 |ved "No |such nic|
|00000a20| 6b 2f 63 68 61 6e 6e 65 | 6c 22 08 63 61 73 65 20 |k/channe|l".case |
|00000a30| 34 30 32 1e 65 72 72 6f | 72 52 65 63 65 69 76 65 |402.erro|rReceive|
|00000a40| 64 20 22 4e 6f 20 73 75 | 63 68 20 73 65 72 76 65 |d "No su|ch serve|
|00000a50| 72 22 08 63 61 73 65 20 | 34 30 33 1f 65 72 72 6f |r".case |403.erro|
|00000a60| 72 52 65 63 65 69 76 65 | 64 20 22 4e 6f 20 73 75 |rReceive|d "No su|
|00000a70| 63 68 20 63 68 61 6e 6e | 65 6c 22 0f 69 72 63 43 |ch chann|el".ircC|
|00000a80| 68 61 6e 6e 65 6c 20 3d | 20 22 22 08 63 61 73 65 |hannel =| "".case|
|00000a90| 20 34 30 34 26 65 72 72 | 6f 72 52 65 63 65 69 76 | 404&err|orReceiv|
|00000aa0| 65 64 20 22 43 61 6e 6e | 6f 74 20 73 65 6e 64 20 |ed "Cann|ot send |
|00000ab0| 74 6f 20 63 68 61 6e 6e | 65 6c 22 08 63 61 73 65 |to chann|el".case|
|00000ac0| 20 34 30 36 2a 65 72 72 | 6f 72 52 65 63 65 69 76 | 406*err|orReceiv|
|00000ad0| 65 64 20 22 54 68 65 72 | 65 20 77 61 73 20 6e 6f |ed "Ther|e was no|
|00000ae0| 20 73 75 63 68 20 6e 69 | 63 6b 6e 61 6d 65 22 08 | such ni|ckname".|
|00000af0| 63 61 73 65 20 34 30 39 | 23 65 72 72 6f 72 52 65 |case 409|#errorRe|
|00000b00| 63 65 69 76 65 64 20 22 | 4e 6f 20 6f 72 69 67 69 |ceived "|No origi|
|00000b10| 6e 20 73 70 65 63 69 66 | 69 65 64 22 08 63 61 73 |n specif|ied".cas|
|00000b20| 65 20 34 32 31 1f 65 72 | 72 6f 72 52 65 63 65 69 |e 421.er|rorRecei|
|00000b30| 76 65 64 20 22 55 6e 6b | 6e 6f 77 6e 20 63 6f 6d |ved "Unk|nown com|
|00000b40| 6d 61 6e 64 22 08 63 61 | 73 65 20 34 33 31 21 65 |mand".ca|se 431!e|
|00000b50| 72 72 6f 72 52 65 63 65 | 69 76 65 64 20 22 4e 6f |rrorRece|ived "No|
|00000b60| 20 6e 69 63 6b 6e 61 6d | 65 20 67 69 76 65 6e 22 | nicknam|e given"|
|00000b70| 08 63 61 73 65 20 34 33 | 32 21 65 72 72 6f 72 52 |.case 43|2!errorR|
|00000b80| 65 63 65 69 76 65 64 20 | 22 45 72 72 6f 6e 65 75 |eceived |"Erroneu|
|00000b90| 73 20 6e 69 63 6b 6e 61 | 6d 65 22 08 63 61 73 65 |s nickna|me".case|
|00000ba0| 20 34 33 33 2a 65 72 72 | 6f 72 52 65 63 65 69 76 | 433*err|orReceiv|
|00000bb0| 65 64 20 22 4e 69 63 6b | 6e 61 6d 65 20 69 73 20 |ed "Nick|name is |
|00000bc0| 61 6c 72 65 61 64 79 20 | 69 6e 20 75 73 65 22 28 |already |in use"(|
|00000bd0| 69 72 63 4e 69 63 6b 20 | 3d 20 6e 74 68 66 69 65 |ircNick |= nthfie|
|00000be0| 6c 64 28 64 61 74 61 53 | 74 72 69 6e 67 2c 63 68 |ld(dataS|tring,ch|
|00000bf0| 72 28 33 32 29 2c 33 29 | 08 63 61 73 65 20 34 33 |r(32),3)|.case 43|
|00000c00| 36 27 65 72 72 6f 72 52 | 65 63 65 69 76 65 64 20 |6'errorR|eceived |
|00000c10| 22 4e 69 63 6b 6e 61 6d | 65 20 63 6f 6c 6c 69 73 |"Nicknam|e collis|
|00000c20| 69 6f 6e 20 4b 49 4c 4c | 22 08 63 61 73 65 20 34 |ion KILL|".case 4|
|00000c30| 34 31 2b 65 72 72 6f 72 | 52 65 63 65 69 76 65 64 |41+error|Received|
|00000c40| 20 22 54 68 65 79 20 61 | 72 65 6e 27 74 20 6f 6e | "They a|ren't on|
|00000c50| 20 74 68 61 74 20 63 68 | 61 6e 6e 65 6c 22 08 63 | that ch|annel".c|
|00000c60| 61 73 65 20 34 34 32 2a | 65 72 72 6f 72 52 65 63 |ase 442*|errorRec|
|00000c70| 65 69 76 65 64 20 22 59 | 6f 75 27 72 65 20 6e 6f |eived "Y|ou're no|
|00000c80| 74 20 6f 6e 20 74 68 61 | 74 20 63 68 61 6e 6e 65 |t on tha|t channe|
|00000c90| 6c 22 08 63 61 73 65 20 | 34 34 33 25 65 72 72 6f |l".case |443%erro|
|00000ca0| 72 52 65 63 65 69 76 65 | 64 20 22 49 73 20 61 6c |rReceive|d "Is al|
|00000cb0| 72 65 61 64 79 20 6f 6e | 20 63 68 61 6e 6e 65 6c |ready on| channel|
|00000cc0| 22 08 63 61 73 65 20 34 | 34 34 22 65 72 72 6f 72 |".case 4|44"error|
|00000cd0| 52 65 63 65 69 76 65 64 | 20 22 55 73 65 72 20 6e |Received| "User n|
|00000ce0| 6f 74 20 6c 6f 67 67 65 | 64 20 69 6e 22 08 63 61 |ot logge|d in".ca|
|00000cf0| 73 65 20 34 35 31 27 65 | 72 72 6f 72 52 65 63 65 |se 451'e|rrorRece|
|00000d00| 69 76 65 64 20 22 59 6f | 75 20 68 61 76 65 20 6e |ived "Yo|u have n|
|00000d10| 6f 74 20 72 65 67 69 73 | 74 65 72 65 64 22 08 63 |ot regis|tered".c|
|00000d20| 61 73 65 20 34 36 32 26 | 65 72 72 6f 72 52 65 63 |ase 462&|errorRec|
|00000d30| 65 69 76 65 64 20 22 59 | 6f 75 20 6d 61 79 20 6e |eived "Y|ou may n|
|00000d40| 6f 74 20 72 65 72 65 67 | 69 73 74 65 72 22 08 63 |ot rereg|ister".c|
|00000d50| 61 73 65 20 34 36 33 34 | 65 72 72 6f 72 52 65 63 |ase 4634|errorRec|
|00000d60| 65 69 76 65 64 20 22 59 | 6f 75 72 20 68 6f 73 74 |eived "Y|our host|
|00000d70| 20 69 73 6e 27 74 20 61 | 6d 6f 6e 67 20 74 68 65 | isn't a|mong the|
|00000d80| 20 70 72 69 76 69 6c 65 | 67 65 64 22 08 63 61 73 | privile|ged".cas|
|00000d90| 65 20 34 36 34 22 65 72 | 72 6f 72 52 65 63 65 69 |e 464"er|rorRecei|
|00000da0| 76 65 64 20 22 50 61 73 | 73 77 6f 72 64 20 69 6e |ved "Pas|sword in|
|00000db0| 63 6f 72 72 65 63 74 22 | 08 63 61 73 65 20 34 36 |correct"|.case 46|
|00000dc0| 35 2f 65 72 72 6f 72 52 | 65 63 65 69 76 65 64 20 |5/errorR|eceived |
|00000dd0| 22 59 6f 75 20 61 72 65 | 20 62 61 6e 6e 65 64 20 |"You are| banned |
|00000de0| 66 72 6f 6d 20 74 68 69 | 73 20 73 65 72 76 65 72 |from thi|s server|
|00000df0| 22 08 63 61 73 65 20 34 | 37 31 38 65 72 72 6f 72 |".case 4|718error|
|00000e00| 52 65 63 65 69 76 65 64 | 20 22 43 61 6e 6e 6f 74 |Received| "Cannot|
|00000e10| 20 6a 6f 69 6e 20 63 68 | 61 6e 6e 65 6c 2c 20 74 | join ch|annel, t|
|00000e20| 68 65 20 63 68 61 6e 6e | 65 6c 20 69 73 20 66 75 |he chann|el is fu|
|00000e30| 6c 6c 22 0f 69 72 63 43 | 68 61 6e 6e 65 6c 20 3d |ll".ircC|hannel =|
|00000e40| 20 22 22 08 63 61 73 65 | 20 34 37 32 2c 65 72 72 | "".case| 472,err|
|00000e50| 6f 72 52 65 63 65 69 76 | 65 64 20 22 49 74 27 73 |orReceiv|ed "It's|
|00000e60| 20 75 6e 6b 6e 6f 77 6e | 20 6d 6f 64 65 20 63 68 | unknown| mode ch|
|00000e70| 61 72 20 74 6f 20 6d 65 | 22 08 63 61 73 65 20 34 |ar to me|".case 4|
|00000e80| 37 33 2b 65 72 72 6f 72 | 52 65 63 65 69 76 65 64 |73+error|Received|
|00000e90| 20 22 54 68 69 73 20 63 | 68 61 6e 6e 65 6c 20 69 | "This c|hannel i|
|00000ea0| 73 20 69 6e 76 69 74 65 | 20 6f 6e 6c 79 22 0f 69 |s invite| only".i|
|00000eb0| 72 63 43 68 61 6e 6e 65 | 6c 20 3d 20 22 22 08 63 |rcChanne|l = "".c|
|00000ec0| 61 73 65 20 34 37 34 30 | 65 72 72 6f 72 52 65 63 |ase 4740|errorRec|
|00000ed0| 65 69 76 65 64 20 22 59 | 6f 75 20 61 72 65 20 62 |eived "Y|ou are b|
|00000ee0| 61 6e 6e 65 64 20 66 72 | 6f 6d 20 74 68 69 73 20 |anned fr|om this |
|00000ef0| 63 68 61 6e 6e 65 6c 22 | 0f 69 72 63 43 68 61 6e |channel"|.ircChan|
|00000f00| 6e 65 6c 20 3d 20 22 22 | 08 63 61 73 65 20 34 37 |nel = ""|.case 47|
|00000f10| 35 31 65 72 72 6f 72 52 | 65 63 65 69 76 65 64 20 |51errorR|eceived |
|00000f20| 22 42 61 64 20 6b 65 79 | 20 69 73 20 67 69 76 65 |"Bad key| is give|
|00000f30| 6e 20 66 6f 72 20 74 68 | 69 73 20 63 68 61 6e 6e |n for th|is chann|
|00000f40| 65 6c 22 0f 69 72 63 43 | 68 61 6e 6e 65 6c 20 3d |el".ircC|hannel =|
|00000f50| 20 22 22 08 63 61 73 65 | 20 34 38 31 3e 65 72 72 | "".case| 481>err|
|00000f60| 6f 72 52 65 63 65 69 76 | 65 64 20 22 50 65 72 6d |orReceiv|ed "Perm|
|00000f70| 69 73 73 69 6f 6e 20 44 | 65 6e 69 65 64 2c 20 79 |ission D|enied, y|
|00000f80| 6f 75 27 72 65 20 6e 6f | 74 20 61 6e 20 49 52 43 |ou're no|t an IRC|
|00000f90| 20 6f 70 65 72 61 74 6f | 72 22 22 08 63 61 73 65 | operato|r"".case|
|00000fa0| 20 34 38 32 2b 65 72 72 | 6f 72 52 65 63 65 69 76 | 482+err|orReceiv|
|00000fb0| 65 64 20 22 59 6f 75 27 | 72 65 20 6e 6f 74 20 63 |ed "You'|re not c|
|00000fc0| 68 61 6e 6e 65 6c 20 6f | 70 65 72 61 74 6f 72 22 |hannel o|perator"|
|00000fd0| 08 63 61 73 65 20 34 38 | 33 27 65 72 72 6f 72 52 |.case 48|3'errorR|
|00000fe0| 65 63 65 69 76 65 64 20 | 22 59 6f 75 20 63 61 6e |eceived |"You can|
|00000ff0| 74 20 6b 69 6c 6c 20 61 | 20 73 65 72 76 65 72 21 |t kill a| server!|
|00001000| 22 08 63 61 73 65 20 34 | 39 31 28 65 72 72 6f 72 |".case 4|91(error|
|00001010| 52 65 63 65 69 76 65 64 | 20 22 4e 6f 20 4f 2d 6c |Received| "No O-l|
|00001020| 69 6e 65 73 20 66 6f 72 | 20 79 6f 75 72 20 68 6f |ines for| your ho|
|00001030| 73 74 22 08 63 61 73 65 | 20 35 30 31 21 65 72 72 |st".case| 501!err|
|00001040| 6f 72 52 65 63 65 69 76 | 65 64 20 22 55 6e 6b 6e |orReceiv|ed "Unkn|
|00001050| 6f 77 6e 20 4d 4f 44 45 | 20 66 6c 61 67 22 08 63 |own MODE| flag".c|
|00001060| 61 73 65 20 35 30 32 30 | 65 72 72 6f 72 52 65 63 |ase 5020|errorRec|
|00001070| 65 69 76 65 64 20 22 43 | 61 6e 74 20 63 68 61 6e |eived "C|ant chan|
|00001080| 67 65 20 6d 6f 64 65 20 | 66 6f 72 20 6f 74 68 65 |ge mode |for othe|
|00001090| 72 20 75 73 65 72 73 22 | 00 0a 65 6e 64 20 73 65 |r users"|..end se|
|000010a0| 6c 65 63 74 87 01 65 6c | 73 65 20 27 74 68 65 20 |lect..el|se 'the |
|000010b0| 66 6f 72 6d 20 6f 66 20 | 74 68 65 20 69 6e 63 6f |form of |the inco|
|000010c0| 6d 69 6e 67 20 64 61 74 | 61 20 69 73 20 2d 2d 3e |ming dat|a is -->|
|000010d0| 20 3a 6e 69 63 6b 21 75 | 73 65 72 40 64 6f 6d 61 | :nick!u|ser@doma|
|000010e0| 69 6e 20 6b 69 6e 64 20 | 3a 6d 73 67 20 2d 27 53 |in kind |:msg -'S|
|000010f0| 6f 72 74 69 6e 67 20 69 | 6e 63 6f 6d 69 6e 67 20 |orting i|ncoming |
|00001100| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 72 6f 6d |informat|ion from|
|00001110| 20 74 68 65 20 63 6c 69 | 65 6e 74 28 6e 69 63 6b | the cli|ent(nick|
|00001120| 20 3d 20 6d 69 64 28 6e | 74 68 46 69 65 6c 64 28 | = mid(n|thField(|
|00001130| 64 61 74 61 53 74 72 69 | 6e 67 2c 22 21 22 2c 31 |dataStri|ng,"!",1|
|00001140| 29 2c 32 29 31 75 73 65 | 72 20 3d 20 6e 74 68 46 |),2)1use|r = nthF|
|00001150| 69 65 6c 64 28 6e 74 68 | 46 69 65 6c 64 28 64 61 |ield(nth|Field(da|
|00001160| 74 61 53 74 72 69 6e 67 | 2c 22 40 22 2c 31 29 2c |taString|,"@",1),|
|00001170| 22 21 22 2c 32 29 37 64 | 6f 6d 61 69 6e 20 3d 20 |"!",2)7d|omain = |
|00001180| 6e 74 68 46 69 65 6c 64 | 28 6e 74 68 46 69 65 6c |nthField|(nthFiel|
|00001190| 64 28 64 61 74 61 53 74 | 72 69 6e 67 2c 22 40 22 |d(dataSt|ring,"@"|
|000011a0| 2c 32 29 2c 63 68 72 28 | 33 32 29 2c 31 29 00 2a |,2),chr(|32),1).*|
|000011b0| 73 65 6c 65 63 74 20 63 | 61 73 65 20 6e 74 68 46 |select c|ase nthF|
|000011c0| 69 65 6c 64 28 64 61 74 | 61 53 74 72 69 6e 67 2c |ield(dat|aString,|
|000011d0| 63 68 72 28 33 32 29 2c | 32 29 00 0b 63 61 73 65 |chr(32),|2)..case|
|000011e0| 20 22 4a 4f 49 4e 22 19 | 27 53 6f 6d 65 6f 6e 65 | "JOIN".|'Someone|
|000011f0| 20 6a 6f 69 6e 20 74 68 | 65 20 63 68 61 6e 6e 65 | join th|e channe|
|00001200| 6c 20 6e 65 77 55 73 65 | 72 52 65 63 65 69 76 65 |l newUse|rReceive|
|00001210| 64 20 6e 69 63 6b 2c 75 | 73 65 72 2c 64 6f 6d 61 |d nick,u|ser,doma|
|00001220| 69 6e 00 0b 63 61 73 65 | 20 22 51 55 49 54 22 2a |in..case| "QUIT"*|
|00001230| 27 53 6f 6d 65 6f 6e 65 | 20 71 75 69 74 20 74 68 |'Someone| quit th|
|00001240| 65 20 6e 65 74 77 6f 72 | 6b 20 66 72 6f 6d 20 74 |e networ|k from t|
|00001250| 68 65 20 63 68 61 6e 6e | 65 6c 21 75 73 65 72 51 |he chann|el!userQ|
|00001260| 75 69 74 52 65 63 65 69 | 76 65 64 20 6e 69 63 6b |uitRecei|ved nick|
|00001270| 2c 75 73 65 72 2c 64 6f | 6d 61 69 6e 00 0b 63 61 |,user,do|main..ca|
|00001280| 73 65 20 22 4b 49 43 4b | 22 16 69 66 20 6e 69 63 |se "KICK|".if nic|
|00001290| 6b 20 3d 20 69 72 63 4e | 69 63 6b 20 74 68 65 6e |k = ircN|ick then|
|000012a0| 26 27 59 6f 75 20 68 61 | 76 65 20 62 65 65 6e 20 |&'You ha|ve been |
|000012b0| 6b 69 63 6b 65 64 20 66 | 72 6f 6d 20 74 68 65 20 |kicked f|rom the |
|000012c0| 63 68 61 6e 6e 65 6c 16 | 68 61 76 65 42 65 65 6e |channel.|haveBeen|
|000012d0| 4b 69 63 6b 65 64 52 65 | 63 65 69 76 65 64 04 65 |KickedRe|ceived.e|
|000012e0| 6c 73 65 2a 27 53 6f 6d | 65 6f 6e 65 20 68 61 76 |lse*'Som|eone hav|
|000012f0| 65 20 62 65 65 6e 20 6b | 69 63 6b 65 64 20 66 72 |e been k|icked fr|
|00001300| 6f 6d 20 74 68 65 20 63 | 68 61 6e 6e 65 6c 1d 6b |om the c|hannel.k|
|00001310| 69 63 6b 52 65 63 65 69 | 76 65 64 20 6e 69 63 6b |ickRecei|ved nick|
|00001320| 2c 75 73 65 72 2c 64 6f | 6d 61 69 6e 06 65 6e 64 |,user,do|main.end|
|00001330| 20 69 66 00 0b 63 61 73 | 65 20 22 4c 45 46 54 22 | if..cas|e "LEFT"|
|00001340| 19 27 53 6f 6d 65 6f 6e | 65 20 6c 65 66 74 20 74 |.'Someon|e left t|
|00001350| 68 65 20 63 68 61 6e 6e | 65 6c 21 75 73 65 72 4c |he chann|el!userL|
|00001360| 65 66 74 52 65 63 65 69 | 76 65 64 20 6e 69 63 6b |eftRecei|ved nick|
|00001370| 2c 75 73 65 72 2c 64 6f | 6d 61 69 6e 00 0e 63 61 |,user,do|main..ca|
|00001380| 73 65 20 22 50 52 49 56 | 4d 53 47 22 0e 27 49 6e |se "PRIV|MSG".'In|
|00001390| 63 6f 6d 69 6e 67 20 63 | 68 61 74 2a 73 65 6c 65 |coming c|hat*sele|
|000013a0| 63 74 20 63 61 73 65 20 | 6e 74 68 46 69 65 6c 64 |ct case |nthField|
|000013b0| 28 64 61 74 61 53 74 72 | 69 6e 67 2c 63 68 72 28 |(dataStr|ing,chr(|
|000013c0| 33 32 29 2c 33 29 0f 63 | 61 73 65 20 69 72 63 43 |32),3).c|ase ircC|
|000013d0| 68 61 6e 6e 65 6c 0c 27 | 4e 6f 72 6d 61 6c 20 43 |hannel.'|Normal C|
|000013e0| 68 61 74 21 63 68 61 74 | 52 65 63 65 69 76 65 64 |hat!chat|Received|
|000013f0| 20 6e 69 63 6b 2c 75 73 | 65 72 2c 64 6f 6d 61 69 | nick,us|er,domai|
|00001400| 6e 2c 6d 73 67 0c 63 61 | 73 65 20 69 72 63 4e 69 |n,msg.ca|se ircNi|
|00001410| 63 6b 0d 27 50 72 69 76 | 61 74 65 20 43 68 61 74 |ck.'Priv|ate Chat|
|00001420| 25 70 72 69 76 43 68 61 | 74 52 65 63 65 69 76 65 |%privCha|tReceive|
|00001430| 64 20 6e 69 63 6b 2c 75 | 73 65 72 2c 64 6f 6d 61 |d nick,u|ser,doma|
|00001440| 69 6e 2c 6d 73 67 0a 65 | 6e 64 20 73 65 6c 65 63 |in,msg.e|nd selec|
|00001450| 74 00 0a 65 6e 64 20 73 | 65 6c 65 63 74 0a 65 6e |t..end s|elect.en|
|00001460| 64 20 73 65 6c 65 63 74 | 09 69 20 3d 20 69 20 2b |d select|.i = i +|
|00001470| 20 31 04 6c 6f 6f 70 07 | 45 6e 64 20 53 75 62 07 | 1.loop.|End Sub.|
|00001480| 73 6e 64 4a 6f 69 6e 24 | 63 68 61 6e 6e 65 6c 20 |sndJoin$|channel |
|00001490| 61 73 20 73 74 72 69 6e | 67 2c 70 61 73 73 77 6f |as strin|g,passwo|
|000014a0| 72 64 20 61 73 20 73 74 | 72 69 6e 67 00 00 05 14 |rd as st|ring....|
|000014b0| 05 14 07 31 53 75 62 20 | 73 6e 64 4a 6f 69 6e 28 |...1Sub |sndJoin(|
|000014c0| 63 68 61 6e 6e 65 6c 20 | 61 73 20 73 74 72 69 6e |channel |as strin|
|000014d0| 67 2c 70 61 73 73 77 6f | 72 64 20 61 73 20 73 74 |g,passwo|rd as st|
|000014e0| 72 69 6e 67 29 18 69 66 | 20 69 72 63 43 68 61 6e |ring).if| ircChan|
|000014f0| 6e 65 6c 20 3c 3e 20 22 | 22 20 74 68 65 6e 2e 77 |nel <> "|" then.w|
|00001500| 72 69 74 65 20 22 50 41 | 52 54 20 22 20 2b 20 69 |rite "PA|RT " + i|
|00001510| 72 63 43 68 61 6e 6e 65 | 6c 20 2b 20 63 68 72 28 |rcChanne|l + chr(|
|00001520| 31 33 29 20 2b 20 63 68 | 72 28 31 30 29 06 65 6e |13) + ch|r(10).en|
|00001530| 64 20 69 66 80 01 77 72 | 69 74 65 20 22 4a 4f 49 |d if..wr|ite "JOI|
|00001540| 4e 20 22 20 2b 20 63 68 | 61 6e 6e 65 6c 20 2b 20 |N " + ch|annel + |
|00001550| 63 68 72 28 33 32 29 20 | 2b 20 70 61 73 73 77 6f |chr(32) |+ passwo|
|00001560| 72 64 20 2b 20 63 68 72 | 28 31 33 29 20 2b 20 63 |rd + chr|(13) + c|
|00001570| 68 72 28 31 30 29 14 69 | 72 63 43 68 61 6e 6e 65 |hr(10).i|rcChanne|
|00001580| 6c 20 3d 20 63 68 61 6e | 6e 65 6c 07 45 6e 64 20 |l = chan|nel.End |
|00001590| 53 75 62 08 73 6e 64 57 | 68 6f 69 73 0e 6e 69 63 |Sub.sndW|hois.nic|
|000015a0| 6b 20 61 73 20 73 74 72 | 69 6e 67 00 00 01 29 01 |k as str|ing...).|
|000015b0| 15 03 1c 53 75 62 20 73 | 6e 64 57 68 6f 69 73 28 |...Sub s|ndWhois(|
|000015c0| 6e 69 63 6b 20 61 73 20 | 73 74 72 69 6e 67 29 29 |nick as |string))|
|000015d0| 77 72 69 74 65 20 22 57 | 48 4f 49 53 20 22 20 2b |write "W|HOIS " +|
|000015e0| 20 6e 69 63 6b 20 2b 20 | 63 68 72 28 31 33 29 20 | nick + |chr(13) |
|000015f0| 2b 20 63 68 72 28 31 30 | 29 07 45 6e 64 20 53 75 |+ chr(10|).End Su|
|00001600| 62 07 73 6e 64 43 68 61 | 74 0d 6d 73 67 20 61 73 |b.sndCha|t.msg as|
|00001610| 20 73 74 72 69 6e 67 00 | 00 01 1d 01 8b 01 03 1a | string.|........|
|00001620| 53 75 62 20 73 6e 64 43 | 68 61 74 28 6d 73 67 20 |Sub sndC|hat(msg |
|00001630| 61 73 20 73 74 72 69 6e | 67 29 8b 01 77 72 69 74 |as strin|g)..writ|
|00001640| 65 20 22 50 52 49 56 4d | 53 47 20 22 20 2b 20 69 |e "PRIVM|SG " + i|
|00001650| 72 63 43 68 61 6e 6e 65 | 6c 20 2b 20 63 68 72 28 |rcChanne|l + chr(|
|00001660| 33 32 29 20 2b 20 63 68 | 72 28 35 38 29 20 2b 20 |32) + ch|r(58) + |
|00001670| 6d 73 67 20 2b 20 63 68 | 72 28 31 33 29 20 2b 20 |msg + ch|r(13) + |
|00001680| 63 68 72 28 31 30 29 07 | 45 6e 64 20 53 75 62 0a |chr(10).|End Sub.|
|00001690| 73 6e 64 50 72 69 76 4d | 73 67 1d 6e 69 63 6b 20 |sndPrivM|sg.nick |
|000016a0| 61 73 20 73 74 72 69 6e | 67 2c 20 6d 73 67 20 61 |as strin|g, msg a|
|000016b0| 73 20 73 74 72 69 6e 67 | 00 00 01 85 01 01 85 01 |s string|........|
|000016c0| 03 2d 53 75 62 20 73 6e | 64 50 72 69 76 4d 73 67 |.-Sub sn|dPrivMsg|
|000016d0| 28 6e 69 63 6b 20 61 73 | 20 73 74 72 69 6e 67 2c |(nick as| string,|
|000016e0| 20 6d 73 67 20 61 73 20 | 73 74 72 69 6e 67 29 85 | msg as |string).|
|000016f0| 01 77 72 69 74 65 20 22 | 50 52 49 56 4d 53 47 20 |.write "|PRIVMSG |
|00001700| 22 20 2b 20 6e 69 63 6b | 20 2b 20 63 68 72 28 33 |" + nick| + chr(3|
|00001710| 32 29 20 2b 20 63 68 72 | 28 35 38 29 20 2b 20 6d |2) + chr|(58) + m|
|00001720| 73 67 20 2b 20 63 68 72 | 28 31 33 29 20 2b 20 63 |sg + chr|(13) + c|
|00001730| 68 72 28 31 30 29 07 45 | 6e 64 20 53 75 62 07 73 |hr(10).E|nd Sub.s|
|00001740| 6e 64 51 75 69 74 0d 6d | 73 67 20 61 73 20 73 74 |ndQuit.m|sg as st|
|00001750| 72 69 6e 67 00 00 02 0f | 02 0f 05 1a 53 75 62 20 |ring....|....Sub |
|00001760| 73 6e 64 51 75 69 74 28 | 6d 73 67 20 61 73 20 73 |sndQuit(|msg as s|
|00001770| 74 72 69 6e 67 29 28 77 | 72 69 74 65 20 22 51 55 |tring)(w|rite "QU|
|00001780| 49 54 20 3a 22 20 2b 20 | 6d 73 67 20 2b 20 63 68 |IT :" + |msg + ch|
|00001790| 72 28 31 33 29 20 2b 20 | 63 68 72 28 31 30 29 0f |r(13) + |chr(10).|
|000017a0| 69 72 63 43 68 61 6e 6e | 65 6c 20 3d 20 22 22 05 |ircChann|el = "".|
|000017b0| 63 6c 6f 73 65 07 45 6e | 64 20 53 75 62 07 73 6e |close.En|d Sub.sn|
|000017c0| 64 50 61 72 74 00 00 00 | 03 0f 03 00 06 0d 53 75 |dPart...|......Su|
|000017d0| 62 20 73 6e 64 50 61 72 | 74 28 29 18 69 66 20 69 |b sndPar|t().if i|
|000017e0| 72 63 43 68 61 6e 6e 65 | 6c 20 3c 3e 20 22 22 20 |rcChanne|l <> "" |
|000017f0| 74 68 65 6e 2e 77 72 69 | 74 65 20 22 50 41 52 54 |then.wri|te "PART|
|00001800| 20 22 20 2b 20 69 72 63 | 43 68 61 6e 6e 65 6c 20 | " + irc|Channel |
|00001810| 2b 20 63 68 72 28 31 33 | 29 20 2b 20 63 68 72 28 |+ chr(13|) + chr(|
|00001820| 31 30 29 0f 69 72 63 43 | 68 61 6e 6e 65 6c 20 3d |10).ircC|hannel =|
|00001830| 20 22 22 06 65 6e 64 20 | 69 66 07 45 6e 64 20 53 | "".end |if.End S|
|00001840| 75 62 07 73 6e 64 4e 69 | 63 6b 0e 6e 69 63 6b 20 |ub.sndNi|ck.nick |
|00001850| 61 73 20 73 74 72 69 6e | 67 00 00 02 0e 02 0e 04 |as strin|g.......|
|00001860| 1b 53 75 62 20 73 6e 64 | 4e 69 63 6b 28 6e 69 63 |.Sub snd|Nick(nic|
|00001870| 6b 20 61 73 20 73 74 72 | 69 6e 67 29 2b 77 72 69 |k as str|ing)+wri|
|00001880| 74 65 20 22 4e 49 43 4b | 20 22 20 2b 20 69 72 63 |te "NICK| " + irc|
|00001890| 4e 69 63 6b 20 2b 20 63 | 68 72 28 31 33 29 20 2b |Nick + c|hr(13) +|
|000018a0| 20 63 68 72 28 31 30 29 | 0e 69 72 63 4e 69 63 6b | chr(10)|.ircNick|
|000018b0| 20 3d 20 6e 69 63 6b 07 | 45 6e 64 20 53 75 62 08 | = nick.|End Sub.|
|000018c0| 73 6e 64 4c 6f 67 69 6e | 00 00 00 03 16 03 16 05 |sndLogin|........|
|000018d0| 0e 53 75 62 20 73 6e 64 | 4c 6f 67 69 6e 28 29 2b |.Sub snd|Login()+|
|000018e0| 77 72 69 74 65 20 22 4e | 49 43 4b 20 22 20 2b 20 |write "N|ICK " + |
|000018f0| 69 72 63 4e 69 63 6b 20 | 2b 20 63 68 72 28 31 33 |ircNick |+ chr(13|
|00001900| 29 20 2b 20 63 68 72 28 | 31 30 29 80 01 77 72 69 |) + chr(|10)..wri|
|00001910| 74 65 20 22 55 53 45 52 | 20 22 20 2b 20 69 72 63 |te "USER| " + irc|
|00001920| 55 73 65 72 20 2b 20 22 | 20 2e 20 2e 20 3a 22 20 |User + "| . . :" |
|00001930| 2b 20 69 72 63 4e 61 6d | 65 20 2b 20 63 68 72 28 |+ ircNam|e + chr(|
|00001940| 31 33 29 20 2b 20 63 68 | 72 28 31 30 29 16 69 72 |13) + ch|r(10).ir|
|00001950| 63 53 65 72 76 65 72 20 | 3d 20 6d 65 2e 61 64 64 |cServer |= me.add|
|00001960| 72 65 73 73 07 45 6e 64 | 20 53 75 62 16 0e 6e 6f |ress.End| Sub..no|
|00001970| 74 69 63 65 52 65 63 65 | 69 76 65 64 10 6e 6f 74 |ticeRece|ived.not|
|00001980| 69 63 65 20 61 73 20 73 | 74 72 69 6e 67 00 12 73 |ice as s|tring..s|
|00001990| 65 72 76 65 72 49 6e 66 | 6f 52 65 63 65 69 76 65 |erverInf|oReceive|
|000019a0| 64 1d 74 79 70 65 20 61 | 73 20 69 6e 74 65 67 65 |d.type a|s intege|
|000019b0| 72 2c 6d 73 67 20 61 73 | 20 73 74 72 69 6e 67 00 |r,msg as| string.|
|000019c0| 12 77 65 6c 63 6f 6d 65 | 4d 73 67 52 65 63 65 69 |.welcome|MsgRecei|
|000019d0| 76 65 64 0d 6d 73 67 20 | 61 73 20 73 74 72 69 6e |ved.msg |as strin|
|000019e0| 67 00 13 6e 65 74 77 6f | 72 6b 49 6e 66 6f 52 65 |g..netwo|rkInfoRe|
|000019f0| 63 65 69 76 65 64 2c 74 | 79 70 65 20 61 73 20 69 |ceived,t|ype as i|
|00001a00| 6e 74 65 67 65 72 2c 6e | 75 6d 20 61 73 20 69 6e |nteger,n|um as in|
|00001a10| 74 65 67 65 72 2c 6d 73 | 67 20 61 73 20 73 74 72 |teger,ms|g as str|
|00001a20| 69 6e 67 00 0c 6d 6f 74 | 64 52 65 63 65 69 76 65 |ing..mot|dReceive|
|00001a30| 64 00 00 10 6d 6f 74 64 | 44 61 74 61 52 65 63 65 |d...motd|DataRece|
|00001a40| 69 76 65 64 0e 64 61 74 | 61 20 61 73 20 73 74 72 |ived.dat|a as str|
|00001a50| 69 6e 67 00 0f 6d 6f 74 | 64 45 6e 64 52 65 63 65 |ing..mot|dEndRece|
|00001a60| 69 76 65 64 00 00 11 77 | 68 6f 69 73 55 73 65 72 |ived...w|hoisUser|
|00001a70| 52 65 63 65 69 76 65 64 | 30 75 73 65 72 20 61 73 |Received|0user as|
|00001a80| 20 73 74 72 69 6e 67 2c | 20 64 6f 6d 61 69 6e 20 | string,| domain |
|00001a90| 61 73 20 73 74 72 69 6e | 67 2c 20 72 65 61 6c 20 |as strin|g, real |
|00001aa0| 61 73 20 73 74 72 69 6e | 67 00 13 77 68 6f 69 73 |as strin|g..whois|
|00001ab0| 53 65 72 76 65 72 52 65 | 63 65 69 76 65 64 20 64 |ServerRe|ceived d|
|00001ac0| 6f 6d 61 69 6e 20 61 73 | 20 73 74 72 69 6e 67 2c |omain as| string,|
|00001ad0| 20 6e 61 6d 65 20 61 73 | 20 73 74 72 69 6e 67 00 | name as| string.|
|00001ae0| 14 77 68 6f 69 73 43 68 | 61 6e 6e 65 6c 52 65 63 |.whoisCh|annelRec|
|00001af0| 65 69 76 65 64 0e 64 61 | 74 61 20 61 73 20 73 74 |eived.da|ta as st|
|00001b00| 72 69 6e 67 00 0d 74 6f | 70 69 63 52 65 63 65 69 |ring..to|picRecei|
|00001b10| 76 65 64 0f 74 6f 70 69 | 63 20 61 73 20 73 74 72 |ved.topi|c as str|
|00001b20| 69 6e 67 00 0f 6e 65 77 | 55 73 65 72 52 65 63 65 |ing..new|UserRece|
|00001b30| 69 76 65 64 30 6e 69 63 | 6b 20 61 73 20 73 74 72 |ived0nic|k as str|
|00001b40| 69 6e 67 2c 20 75 73 65 | 72 20 61 73 20 73 74 72 |ing, use|r as str|
|00001b50| 69 6e 67 2c 20 64 6f 6d | 61 69 6e 20 61 73 20 73 |ing, dom|ain as s|
|00001b60| 74 72 69 6e 67 00 0c 6b | 69 63 6b 52 65 63 65 69 |tring..k|ickRecei|
|00001b70| 76 65 64 30 6e 69 63 6b | 20 61 73 20 73 74 72 69 |ved0nick| as stri|
|00001b80| 6e 67 2c 20 75 73 65 72 | 20 61 73 20 73 74 72 69 |ng, user| as stri|
|00001b90| 6e 67 2c 20 64 6f 6d 61 | 69 6e 20 61 73 20 73 74 |ng, doma|in as st|
|00001ba0| 72 69 6e 67 00 16 68 61 | 76 65 42 65 65 6e 4b 69 |ring..ha|veBeenKi|
|00001bb0| 63 6b 65 64 52 65 63 65 | 69 76 65 64 00 00 10 75 |ckedRece|ived...u|
|00001bc0| 73 65 72 4c 65 66 74 52 | 65 63 65 69 76 65 64 30 |serLeftR|eceived0|
|00001bd0| 6e 69 63 6b 20 61 73 20 | 73 74 72 69 6e 67 2c 20 |nick as |string, |
|00001be0| 75 73 65 72 20 61 73 20 | 73 74 72 69 6e 67 2c 20 |user as |string, |
|00001bf0| 64 6f 6d 61 69 6e 20 61 | 73 20 73 74 72 69 6e 67 |domain a|s string|
|00001c00| 00 0c 63 68 61 74 52 65 | 63 65 69 76 65 64 80 01 |..chatRe|ceived..|
|00001c10| 6e 69 63 6b 20 61 73 20 | 73 74 72 69 6e 67 2c 20 |nick as |string, |
|00001c20| 75 73 65 72 20 61 73 20 | 73 74 72 69 6e 67 2c 20 |user as |string, |
|00001c30| 64 6f 6d 61 69 6e 20 61 | 73 20 73 74 72 69 6e 67 |domain a|s string|
|00001c40| 2c 20 63 68 61 74 20 61 | 73 20 73 74 72 69 6e 67 |, chat a|s string|
|00001c50| 00 10 70 72 69 76 43 68 | 61 74 52 65 63 65 69 76 |..privCh|atReceiv|
|00001c60| 65 64 80 01 6e 69 63 6b | 20 61 73 20 73 74 72 69 |ed..nick| as stri|
|00001c70| 6e 67 2c 20 75 73 65 72 | 20 61 73 20 73 74 72 69 |ng, user| as stri|
|00001c80| 6e 67 2c 20 64 6f 6d 61 | 69 6e 20 61 73 20 73 74 |ng, doma|in as st|
|00001c90| 72 69 6e 67 2c 20 63 68 | 61 74 20 61 73 20 73 74 |ring, ch|at as st|
|00001ca0| 72 69 6e 67 00 10 75 73 | 65 72 51 75 69 74 52 65 |ring..us|erQuitRe|
|00001cb0| 63 65 69 76 65 64 30 6e | 69 63 6b 20 61 73 20 73 |ceived0n|ick as s|
|00001cc0| 74 72 69 6e 67 2c 20 75 | 73 65 72 20 61 73 20 73 |tring, u|ser as s|
|00001cd0| 74 72 69 6e 67 2c 20 64 | 6f 6d 61 69 6e 20 61 73 |tring, d|omain as|
|00001ce0| 20 73 74 72 69 6e 67 00 | 11 75 73 65 72 73 4c 69 | string.|.usersLi|
|00001cf0| 73 74 52 65 63 65 69 76 | 65 64 0e 6c 69 73 74 20 |stReceiv|ed.list |
|00001d00| 61 73 20 73 74 72 69 6e | 67 00 0e 61 63 74 69 6f |as strin|g..actio|
|00001d10| 6e 52 65 63 65 69 76 65 | 64 2e 64 61 74 61 20 61 |nReceive|d.data a|
|00001d20| 73 20 73 74 72 69 6e 67 | 2c 75 73 65 72 20 61 73 |s string|,user as|
|00001d30| 20 73 74 72 69 6e 67 2c | 64 6f 6d 61 69 6e 20 61 | string,|domain a|
|00001d40| 73 20 73 74 72 69 6e 67 | 00 10 61 75 74 68 49 6e |s string|..authIn|
|00001d50| 66 6f 52 65 63 65 69 76 | 65 64 0d 6d 73 67 20 61 |foReceiv|ed.msg a|
|00001d60| 73 20 73 74 72 69 6e 67 | 00 0d 65 72 72 6f 72 52 |s string|..errorR|
|00001d70| 65 63 65 69 76 65 64 0f | 65 72 72 6f 72 20 61 73 |eceived.|error as|
|00001d80| 20 73 74 72 69 6e 67 00 | 04 04 4f 70 65 6e 01 00 | string.|..Open..|
|00001d90| 01 00 03 0a 53 75 62 20 | 4f 70 65 6e 28 29 00 07 |....Sub |Open()..|
|00001da0| 45 6e 64 20 53 75 62 05 | 45 72 72 6f 72 01 00 01 |End Sub.|Error...|
|00001db0| 00 03 0b 53 75 62 20 45 | 72 72 6f 72 28 29 00 07 |...Sub E|rror()..|
|00001dc0| 45 6e 64 20 53 75 62 09 | 43 6f 6e 6e 65 63 74 65 |End Sub.|Connecte|
|00001dd0| 64 02 08 02 08 04 0f 53 | 75 62 20 43 6f 6e 6e 65 |d......S|ub Conne|
|00001de0| 63 74 65 64 28 29 1a 27 | 57 65 20 72 65 67 69 73 |cted().'|We regis|
|00001df0| 74 65 72 20 74 6f 20 74 | 68 65 20 73 65 72 76 65 |ter to t|he serve|
|00001e00| 72 08 73 6e 64 4c 6f 67 | 69 6e 07 45 6e 64 20 53 |r.sndLog|in.End S|
|00001e10| 75 62 0d 44 61 74 61 41 | 76 61 69 6c 61 62 6c 65 |ub.DataA|vailable|
|00001e20| 02 00 02 00 04 13 53 75 | 62 20 44 61 74 61 41 76 |......Su|b DataAv|
|00001e30| 61 69 6c 61 62 6c 65 28 | 29 39 27 57 65 20 72 65 |ailable(|)9'We re|
|00001e40| 63 65 69 76 65 64 20 64 | 61 74 61 2e 20 54 68 65 |ceived d|ata. The|
|00001e50| 20 64 61 74 61 20 69 73 | 20 73 65 6e 64 20 74 6f | data is| send to|
|00001e60| 20 74 68 65 20 6d 65 74 | 68 6f 64 20 72 63 76 44 | the met|hod rcvD|
|00001e70| 61 74 61 12 72 63 76 44 | 61 74 61 20 6d 65 2e 72 |ata.rcvD|ata me.r|
|00001e80| 65 61 64 41 6c 6c 07 45 | 6e 64 20 53 75 62 00 00 |eadAll.E|nd Sub..|
|00001e90| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+